<?php
namespace Backend\Config;

use Commons\Config\Base;
use Phalcon\Config;

$currentConfig = new Config([
    'application' => [
        'configDir'      => APP_PATH . 'Config/',
        'cacheDir'       => APP_PATH . 'Cache/',
        'controllersDir' => APP_PATH . 'Controllers/',
        'modelsDir'      => APP_PATH . 'Models/',
        'viewsDir'       => APP_PATH . 'Views/',
        'librariesDir'   => APP_PATH . 'Library/',
        'logsDir'        => APP_PATH . 'Logs/',
        'pluginDir'      => APP_PATH . 'Plugin/',
        'assetsUri'      => ENVIRONMENT == 'production' ? 'http://res.scdscar.com/' : (ENVIRONMENT == 'testing' ? 'http://res.scdscar.com' : 'http://r.dshc.com/'),
        'uploadPath'     => dirname(dirname(__DIR__)) . '/public/res/'
    ]
]);

return (include dirname(APP_PATH) . '/Commons/Config/Base.php')->merge($currentConfig);
